<%--
  Created by IntelliJ IDEA.
  User: 15041
  Date: 2020/12/17
  Time: 18:20
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

<fieldset>
    <p>简单类型传参，url传参</p>
    <a href="/user/text01.do?id=1&username=zhangsan">逐个接收请求参数，参数名与变量名一致</a>
    <a href="/user/text02.do?user_id=2&username=lisi">逐个接收请求参数，参数名与变量名不一致</a>
</fieldset>

<fieldset>
    <p>POJO类接收</p>
    <a href="/user/text03.do?id=3&username=wangwu">POJO类接收请求参数get类型</a>
    <form action="/user/text03.do" method="post">
        <input type="submit" value="POJO类接收请求参数Post类型">
        <input type="hidden" name="id" value="4">
        <input type="hidden" name="username" value="zhaoliu">
    </form>
</fieldset>

<fieldset>
    <p>复杂类型</p>
    <a href="/user/text04.do?account.id=5&account.name=qinqi&account.money=500">复杂类型接收请求参数get</a>
    <form action="/user/text04.do" method="post">
        <input type="submit" value="复杂类型接收请求参数post">
        <input type="hidden" name="account.id" value="6">
        <input type="hidden" name="account.name" value="王八">
        <input type="hidden" name="account.money" value="500">
    </form>
</fieldset>

<fieldset>
    <p>数组类型</p>
    <a href="/user/text05.do?args=mybatis&args=spring&args=springmvc">数组接收请求参数get</a>
    <form action="/user/text05.do" method="post">
        <input type="submit" value="数组接收请求参数post">
        <input type="hidden" name="args" value="mybatis">
        <input type="hidden" name="args" value="spring">
        <input type="hidden" name="args" value="springmvc">
    </form>
</fieldset>

<fieldset>
    <p>list集合类型</p>
    <a href="/user/text06.do?list=mybatis&list=spring&list=springmvc">list集合接收请求参数get</a>
    <form action="/user/text06.do" method="post">
        <input type="submit" value="list集合接收请求参数post">
        <input type="hidden" name="list" value="mybatis">
        <input type="hidden" name="list" value="spring">
        <input type="hidden" name="list" value="springmvc">
    </form>
</fieldset>

<fieldset>
    <p>类型转换</p>
    <a href="/user/getDate.do?date=2020/12/17">date传参类型转换默认类型</a>
</fieldset>

<fieldset>
    <p>类型转换 - </p>
    <a href="/user/getDate1.do?date=2020-12-17">date传参 注解解决不能用-的问题</a>
</fieldset>
</body>
</html>
